/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.dao;

import cn.mcsys.myadmin.common.persistence.CrudDao;
import cn.mcsys.myadmin.common.persistence.annotation.MyBatisDao;
import cn.mcsys.myadmin.modules.air.entity.AirRidePoint;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 乘车点管理DAO接口
 * @author leopold
 * @version 2018-08-13
 */
@MyBatisDao
public interface AirRidePointDao extends CrudDao<AirRidePoint> {

    List<AirRidePoint> getAllList();

    List<AirRidePoint> getAllPointList();

    List<AirRidePoint> findAllAppointedList();

    void updateWaitingSum(@Param("pointId") Integer pointId,@Param("sum") Integer sum);

    AirRidePoint getRidePointByName(@Param("name") String name);

    List<AirRidePoint> selectOutSidePoint();

    AirRidePoint getByRoute(@Param("route") Integer route);

    List<AirRidePoint> selectByPointType(Integer type);
}